//10：定义两个整数数组，判断他们是否相同（数组长度一样，
// 并且每个位置上的值都是相同，则认为数组相同）
public class Task2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("Please input the first array:");
        String s = in.nextLine();
        String[] a = s.split(" ");
        int[] arr1 = new int[a.length];
        for (int i = 0; i < a.length; i++) {
            arr1[i] = Integer.parseInt(a[i]);
        }
        System.out.println("Please input the second array:");
        String o = in.nextLine();
        String[] b = o.split(" ");
        int[] arr2 = new int[b.length];
        for (int j = 0; j < b.length; j++) {
            arr2[j] = Integer.parseInt(b[j]);
        }
        System.out.println("The first array:" + Arrays.toString(arr1));
        System.out.println("The second array:" + Arrays.toString(arr2));
        if (a.length != b.length) {
            System.out.println("Different!");
        } else {
            for (int i = 0; i < a.length; i++) {
                if (arr1[i] == arr2[i]) {
                    System.out.println("Equally!");
                    break;
                } else {
                    System.out.println("Different!");
                    break;
                }
            }
        }
    }
}